package com.jltx.zeus.arch.api

import com.jltx.zeus.arch.bean.WeChatResponse
import io.reactivex.Observable
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author aidenquan
 *         Created by junlintianxia on 2020/10/09.
 */
interface WeChatApi {
    @GET("/wxnew/index?key=" + Config.WECHAT_APP_KEY)
    fun getWeChatNews(
        @Query("num") limitNum: Int,
        @Query("page") page: Int
    ): Observable<WeChatResponse?>

    @GET("/wxnew/index?key=" + Config.WECHAT_APP_KEY)
    fun getWeChatNewsDeferAsync(
        @Query("num") limitNum: Int,
        @Query("page") page: Int
    ): Call<WeChatResponse?>
}
